import store from '@/store'
// 混入对象的的所有配置项等同于vue组件对象
export default {
  methods: {
    checkpermission(key) {
      const userIfo = store.state.user.userInfo
      return userIfo?.roles?.points?.includes(key)
    }
  }
}

